import Vue from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';

import 'swiper/dist/css/swiper.css';
import '@/util'


Vue.config.productionTip = false;

new Vue({
	computed:{
		echarts(){
			return this.$store.state.echarts;
		}
	},
	methods:{
		bindEcharts(){
			window.onresize = this.$debounce(() => {
				this.echarts.forEach((v) => {
					v.resize();
				})
			}, 1000)
		}
	},
	created() {
		this.bindEcharts();
	},
  router,
  store,
  render: h => h(App)
}).$mount('#app')
